﻿using System.Collections.ObjectModel;

namespace TFramework.ECS.Group.Observable
{
    public class ObservableGroupLookup : KeyedCollection<ObservableGroupToken, IObservableGroup>
    {
        protected override ObservableGroupToken GetKeyForItem(IObservableGroup item) => item.Token;

        public IObservableGroup GetByIndex(int index) => Items[index];
    }
}
